<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("loc_fil", $con);

$sql="INSERT INTO parks(P_id, P_Name, P_City, P_State, P_Location,loc_latitude,loc_longitude)
VALUES 
('$_POST[P_id]','$_POST[P_Name]','$_POST[P_City]','$_POST[P_State]','$_POST[P_Location]','$_POST[loc_latitude]','$_POST[loc_latitude]' )";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";

mysql_close($con)
?>
